package Day12;

import java.io.File;
import java.io.IOException;

/**
 * @Author kalista
 * @Description
 * @Date 2020/11/18  11:30
 **/
public class Test {


    public static void main(String[] args) {

        Person person = new Person();
        // 非法年纪异常

        try {
            person.setAge( 9 ) ;
        } catch (AgeException e) {
            e.printStackTrace();
        }


        File file = new File("");
        if(file.exists()){
            try {
                file.createNewFile();
            }catch (IOException e){
                System.out.println(e.getMessage());
            }

        }


    }
}
